
export class LogPrint {

    logs: string[]
    index: number

    constructor() {
        this.index = 0
        this.logs = []
    }

    addLog(msg: string) {
        this.index = this.logs.length + 1
        this.logs.push(this.index + " ." + msg)
    }

    lastLog() {
        return this.logs[-1]
    }

}
